import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/Login.vue'
import Houtai from '../views/Houtai.vue'
import ktw from '../views/ktw/ktw.vue'
import mj from '../views/mj/mj.vue'
import nyt from '../views/nyt/nyt.vue'
import pjt from '../views/pjt/pjt.vue'
import yyl from '../views/yyl/yyl.vue'
import zj from '../views/zj/zj.vue'
import yyl1 from '../views/yyl/yyl1.vue'
import pjt1 from '../views/pjt/pjt1.vue'
import ktw1 from '../views/ktw/ktw1.vue'
import ktw2 from '../views/ktw/ktw2.vue'
import zj1 from '../views/zj/zj1.vue'
import Main from '../views/Main.vue'

Vue.use(VueRouter)

const routes = [
  {path:'/login',component:Login,name:'login'},
  {
    path: '/main',name: 'main',
    children : [
      {path:'/pjt',component:pjt,name:'pjt'},
      {path:'/ktw',component:ktw,name:'ktw'},
      {path:'/ktw1',component:ktw1,name:'ktw1'},
      {path:'/ktw2',component:ktw2,name:'ktw2'},
    ],
    component: Main
  },
  {
    path: '/houtai',name: 'Houtai',
    children : [
    {path: '/nyt',component:nyt,name:'nyt'},
    {path: '/pjt1',component:pjt1,name:'pjt1'},
    {path: '/zj',component:zj,name:'zj'},
    {path: '/yyl',component:yyl,name:'yyl'},
    {path: '/yyl1',component:yyl1,name:'yyl1'},
    {path: '/mj',component:mj,name:'mj'},
    {path: '/zj1',component:zj1,name:'zj1'},
    ],
    component: Houtai
  },

]

const router = new VueRouter({
  routes
})

export default router
